package com.wangshang.team.feedback.po;

import java.util.Date;

/**
 * AbstractFeedbackeTeamShopId entity provides the base persistence definition
 * of the FeedbackeTeamShopId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public abstract class AbstractFeedbackeTeamShopId implements
		java.io.Serializable {

	// Fields

	private Integer teamShopId;
	private String userIdentify;
	private String saySomething;
	private Date date;

	// Constructors

	/** default constructor */
	public AbstractFeedbackeTeamShopId() {
	}

	/** full constructor */
	public AbstractFeedbackeTeamShopId(Integer teamShopId, String userIdentify,
			String saySomething, Date date) {
		this.teamShopId = teamShopId;
		this.userIdentify = userIdentify;
		this.saySomething = saySomething;
		this.date = date;
	}

	// Property accessors

	public Integer getTeamShopId() {
		return this.teamShopId;
	}

	public void setTeamShopId(Integer teamShopId) {
		this.teamShopId = teamShopId;
	}

	public String getUserIdentify() {
		return this.userIdentify;
	}

	public void setUserIdentify(String userIdentify) {
		this.userIdentify = userIdentify;
	}

	public String getSaySomething() {
		return this.saySomething;
	}

	public void setSaySomething(String saySomething) {
		this.saySomething = saySomething;
	}

	public Date getDate() {
		return this.date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractFeedbackeTeamShopId))
			return false;
		AbstractFeedbackeTeamShopId castOther = (AbstractFeedbackeTeamShopId) other;

		return ((this.getTeamShopId() == castOther.getTeamShopId()) || (this
				.getTeamShopId() != null
				&& castOther.getTeamShopId() != null && this.getTeamShopId()
				.equals(castOther.getTeamShopId())))
				&& ((this.getUserIdentify() == castOther.getUserIdentify()) || (this
						.getUserIdentify() != null
						&& castOther.getUserIdentify() != null && this
						.getUserIdentify().equals(castOther.getUserIdentify())))
				&& ((this.getSaySomething() == castOther.getSaySomething()) || (this
						.getSaySomething() != null
						&& castOther.getSaySomething() != null && this
						.getSaySomething().equals(castOther.getSaySomething())))
				&& ((this.getDate() == castOther.getDate()) || (this.getDate() != null
						&& castOther.getDate() != null && this.getDate()
						.equals(castOther.getDate())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getTeamShopId() == null ? 0 : this.getTeamShopId()
						.hashCode());
		result = 37
				* result
				+ (getUserIdentify() == null ? 0 : this.getUserIdentify()
						.hashCode());
		result = 37
				* result
				+ (getSaySomething() == null ? 0 : this.getSaySomething()
						.hashCode());
		result = 37 * result
				+ (getDate() == null ? 0 : this.getDate().hashCode());
		return result;
	}

}